<!--
/**
 * egpusersUpdate.tpl
 * 
 * (C) 2009, tetsuya.odaka(EzoGP).
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
-->
 
{include '../Myznala/templates/myHeader.tpl'}

<!-- ==========  追加スタイルとスクリプト   ============ -->
<style type="text/css"> 
</style>

<script type="text/javascript" src="../scripts/myznala-form-yui.js"></script> 
<script type="text/javascript" src="scripts/egpusers-sync-inc.js"></script> 
<script type="text/javascript">
</script>
	
<!-- ==========  以下がプログラム部   ================ -->

<h4>[sample]　更新と削除</h4>

<br>
<div align="center">
<FORM method="POST" name="cond" action="egpusersUpdate.dispatch.php">
<!-- ボタンの表示 -->
{if $button_array}
	{include '../Myznala/templates/button.inc.tpl'}
{/if}

<!-- エラーがあれば表示する  -->
{if $myErrArray}
	{include '../Myznala/templates/error.inc.tpl'}
{/if}

<!-- 正常終了のメッセージ  -->
{if $myMsgArray}
	{include '../Myznala/templates/msg.inc.tpl'}
{/if}

<!-- 更新・削除のための隠しフィールド -->
<input type=hidden name="id" size=20 value={$id}>
<TABLE border="1" style="width:400px;">
  <TBODY>
    <TR><TH align="left" colspan="3">EGP_USERS</TH>
    </TR>
    <TR><TH align="left">ID</TH>
    	<TH align="center"><font color="red">*<font></TH>
    	<TD>{$id}
    		<input id ="id" type="hidden" name="id" size=25 value={$id}>
    	</TD>
    </TR>
    <TR><TH align="left">Email</TH>
    	<TH align="center"><font color="red">*<font></TH>
    	<TD>{$email}
	    	<input id="email" type="hidden" name="email" size=50 value={$email}>
    	</TD>
    </TR>
    <TR><TH align="left">パスワード</TH>
    	<TH align="center"><font color="red">*<font></TH>
    	<TD>
    		<input id ="password" type="password" name="password" size=25
    			class="egp-my-isAlphaNum" value={$password}>
    		<span id="password_res" class="egp-my-error"></span>
    	</TD>
    </TR>
    <TR><TH align="left">名前</TH>
    	<TH align="center"><font color="red">*<font></TH>
    	<TD><input id="name" type="text" name="name" size=50
    			class="egp-my-isRequired" value={$name}>
    		<span id="name_res" class="egp-my-error"></span>
    	</TD>
    </TR>
    <TR><TH align="left">よみ</TH>
    	<TH></TH>
    	<TD><input id="nameyomi" type="text" name="nameyomi" size=50
    			class="egp-my-inputonly-isHiragana" value={$nameyomi}>
    		<span id="nameyomi_res" class="egp-my-error"></span>
    	</TD>
    </TR>
    <TR><TH align="left">役割</TH>
    	<TH></TH>
    	<TD><select name="role">
    	{if $role=="guest"}
      		<option value="guest" selected>guest</option>
      		<option value="manager">manager</option>
      		<option value="admin">admin</option>
		{/if}
    	{if $role=="manager"}
      		<option value="guest">guest</option>
      		<option value="manager" selected>manager</option>
      		<option value="admin">admin</option>
		{/if}
    	{if $role=="admin"}
      		<option value="guest">guest</option>
      		<option value="manager">manager</option>
      		<option value="admin" selected>admin</option>
		{/if}
		</select></td>
    </TR>
  </TBODY>
</TABLE>
</FORM>
</div>

<!-- ==========  以上がプログラム部   ================ -->
{include '../Myznala/templates/myFooter.tpl'}
